import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'

import ElementPlus from 'element-plus'


import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import plugins from '../src/plugins' // plugins

import '../src/assets/font_icon/iconfont.css'
import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '../src/utils/tools'

const app = createApp(App)

// 全局方法挂载

app.config.globalProperties.parseTime = parseTime
app.config.globalProperties.resetForm = resetForm
app.config.globalProperties.handleTree = handleTree
app.config.globalProperties.addDateRange = addDateRange
app.config.globalProperties.selectDictLabel = selectDictLabel
app.config.globalProperties.selectDictLabels = selectDictLabels

app.use(plugins)
app.use(router)
app.use(ElementPlus)
app.mount('#app')

